package com.xuetang9.t9.hotel.services;





import com.xuetang9.t9.hotel.beans.RoomInfo;
import com.xuetang9.t9.hotel.mapper.condition.impl.RoomInfoCondition;
import com.xuetang9.t9.hotel.utils.PageBean;
import com.xuetang9.t9.hotel.utils.ResponseResult;

import java.util.List;

/**
 * 房间业务层
 * @author pang
 */
public interface IRoomInfoService {

    /**
     * 保存房间
     * @param roomInfo
     * @return
     */
    boolean save(RoomInfo roomInfo);

    /**
     * 更新房间
     * @param roomInfo
     * @return
     */
    boolean update(RoomInfo roomInfo);

    /**
     * 删除房间信息
     * @param roomId
     * @return
     */
    boolean remove(Integer roomId);

    /**
     * 根据房间查询条件查询信息
     * @param roomInfoCondition
     * @return
     */
    PageBean findByAll(RoomInfoCondition roomInfoCondition);

    /**
     * 根据房间查询条件查询总记录条数
     * @param roomInfoCondition
     * @return
     */
    Long findByCount(RoomInfoCondition roomInfoCondition);

    /**
     * 返回总页数
     * @param pageSize
     * @return
     */
    int pageCount(int pageSize);

    /**
     * 批量修改房间状态
     * @param rooms
     * @param startId
     * @return
     */
    boolean batchByStart(List<Integer> rooms,Integer startId);
}
